package com.cjl.learn.listener;

import org.springframework.boot.context.event.ApplicationContextInitializedEvent;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;

/**
 * Created by Enzo Cotter on 2019-07-07.
 */
public class MyApplicationPreparedEventListener implements ApplicationListener<ApplicationPreparedEvent> {
    @Override
    public void onApplicationEvent(ApplicationPreparedEvent event) {
        System.out.println("监听到application环境准备完成， MyApplicationPreparedEventListener的onApplicationEvent方法被调用。。。");
    }
}
